import yaml


class Utils:
    @classmethod
    def load_yaml(cls, path):
        data = yaml.safe_load(open(path, encoding="utf-8"))
        # print(datas)
        if isinstance(data[0], dict):
            return [list(i.values()) for i in data]
        return data

if __name__ == '__main__':
    print(Utils.load_yaml("../testdata/index/index3.yaml"))